package com.cheboohui.iqs.taiping.direct;

import com.alibaba.fastjson.JSONObject;
import com.cheboohui.iqs.menu.ErrorNews;

/**
 * 太平直连中间类
 * 
 * @author xielonghai
 *
 */
public class ResTaiPing {

	private boolean state;

	private ErrorNews error;

	private String msg;

	private JSONObject result;
	
	private JSONObject head=new JSONObject();

	public ResTaiPing(ErrorNews error, String msg) {
		this.state = false;
		this.error = error;
		this.msg = msg;
	}

	public ResTaiPing(ErrorNews error, String msg, JSONObject result) {
		this.state = false;
		this.error = error;
		this.msg = msg;
		this.result = result;
	}

	public ResTaiPing(JSONObject result) {
		this.state = true;
		this.result = result;
	}

	public ErrorNews getError() {
		return error;
	}

	public void setError(ErrorNews error) {
		this.error = error;
	}

	public boolean isState() {
		return state;
	}

	public String getMsg() {
		return msg;
	}

	public JSONObject getResult() {
		return result;
	}

	public JSONObject getHead() {
		return head;
	}

	public void setHead(JSONObject head) {
		this.head = head;
	}
}
